<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>更改文章</title>
<style type="text/css">
<!--
body {
	background-image: url(images/allbg.gif);
}
-->
</style>
<link href="css/base.css" rel="stylesheet" type="text/css">
<link href='css/tb-box.css' rel='stylesheet' type='text/css' />
<script language="javascript" src="../include/js/dedeajax2.js"></script>
<script type="text/javascript" src="js/calendar/calendar.js"></script>
<script language="javascript" src="js/main.js"></script>
<script type="text/javascript"src="js/handlers.js"></script>
<script type="text/javascript" src="../images/swfupload/swfupload.js"></script>
<script language="javascript" src="../include/js/jquery/jquery.js"></script>
<script language="javascript" src="../include/js/jquery/ui.core.js"></script>
<script language="javascript" src="../include/js/jquery/ui.draggable.js"></script>
<script language='javascript' src='js/tb-box.js'></script>
<script language="javascript">
var swfu = null;
var arctype = 'article';
</script>
</head>
<body topmargin="8">
<form name="form1" action="hidden_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();">
  <input type="hidden" name="dopost" id="dopost" value="save" />
  <input type="hidden" name="channelid" value="<?php echo $channelid?>" />
  <input type="hidden" name="aid" value="<?php echo $addRow['aid']?>" />
  <table width="98%"  border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;">

    <tr>
      <td height="24" colspan="2" bgcolor="#F9FCEF" class="bline2">&nbsp;隐藏内容：</td>
    </tr>

      <tr>
          <td height="24" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0">
              <tr>
                  <td width="110">&nbsp;阅读权限：</td>
                  <td width="250"><select name="arcrank" id="arcrank" style="width:150">
                      <?php
                $urank = $cuserLogin->getUserRank();

                      $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'");
                      $dsql->Execute();
                      while($row = $dsql->GetObject()){
                      $selected= '';
                      if($addRow['arcrank']==$row->rank) $selected='selected';
                      echo "     <option value='".$row->rank."' ".$selected.">".$row->membername."</option>\r\n";
                      }
                      ?>
                  </select></td>
                  <td width="90">价格：</td>
                  <td><input name="price" type="text" value="<?=$addRow['price'] ? $addRow['price'] : '0.00'?>">
                       </td>
              </tr>
          </table></td>
      </tr>
    <tr>
      <td width="100%"><?php GetEditor("body",stripcslashes($addRow['body']),450); ?></td>
      <td width="255" align="center" valign="top" bgcolor="#FFFFCC" id="mPic" style="display:none"><div class="multipic">
          <div style="display: block;background-color:#E5F1CF; height:26px"> <span id="spanButtonPlaceholder"></span> </div>
          <div id="divFileProgressContainer"></div>
          
          
          <div id="thumbnailsEdit" style="width: 254px; height: 535px; background-color: rgb(255, 255, 255); overflow-y: scroll;">
          <?php
           //var_dump("SELECT * FROM `#@__uploads` WHERE arcid = {$addRow['aid']}");
            $dsql->SetQuery("SELECT * FROM `#@__uploads` WHERE arcid = {$addRow['aid']}");
            $dsql->Execute();
            while($trow = $dsql->GetArray())
            {
          ?>
            <div class="albCt" id="albold<?php echo $trow['aid'];?>"><img width="120" onclick="addtoEditOld('<?php echo $trow['url'];?>',<?php echo $trow['aid'];?>)" src="<?php echo $trow['url'];?>" style="cursor:pointer"><a href="javascript:delAlbPicOld('<?php echo $trow['url'];?>', <?php echo $trow['aid'];?>)">[删除]</a>
              <div style="margin-top:10px">注释：
                <input type="text" style="width:100px;" value="<?php echo $trow['title'];?>" name="picinfook<?php echo $trow['aid'];?>">
              </div>
            </div>
            <?php
            }
            ?>
            <div id="thumbnails"></div>
          </div>
          
        </div></td>
    </tr>
  </table>


  <!-- //高级参数 -->

  <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;">
    <tr>
      <td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1">
          <tr>
            <td width="17%">&nbsp;</td>
            <td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="115"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer"></td>
                  <td width="99">
                      <input  id="del-hidden" type="button" width="60" height="22" class="np" border="0" value="删除隐藏内容" style="cursor:pointer">
                  </td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
  </table>
  <script language='javascript'>InitPage();</script>
</form>
<div id="__tmpbody" style="display:none"></div>
<script>
    $(function () {
        $("#del-hidden").click(function () {
            if(confirm('确定要删除该隐藏内容么？')){
                $("#dopost").val('delete');
                form1.submit();
            }
        });
    });
</script>
</body>
</html>